{% extends 'rbac/layout.html' %}

{% block content %}
<div>
    <form action="{% url 'menu_add' %}" method="post" novalidate>
    {% csrf_token %}
        {% for filed in form %}
        <div class="form-group">
            <label for="{{ filed.id_for_label }}">{{ filed.label }}</label>
            {{ filed }}
            <span style="color: red">{{ form.errors.title.0 }}</span>
        </div>
        {% endfor %}
        <input type="submit" value="提交">
    </form>
</div>

{% endblock %}